﻿<%@ Page Title="" Language="C#" MasterPageFile="~/mypage/MypageMasterPage.master" AutoEventWireup="true" CodeBehind="card_info.aspx.cs" Inherits="Com.Web.coffinegurunaru.mypage.card_info" %>
<%@ Register TagPrefix="UC" TagName="Paging" Src="~/aboutus/usercontrol/paging.ascx" %>
<%@ Import Namespace="Com.Library.DB.UserCard" %>
<%@ Import Namespace="Com.Library.SOAP.PointHistory" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
<link rel="StyleSheet" href="/css/jquery-ui.css" type="text/css" />
<script language="javascript" src="/js/jquery-ui-1.8.23.min.js" type="text/javascript"></script>
<style type="text/css">
#apDiv1 {
	position:absolute;
	left:954px;
	top:409px;
	width:185px;
	height:132px;
	z-index:1;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="33">&nbsp;</td>
          </tr>
          <tr>
            <td><img src="/images/mypage/tit_01.gif" width="361" height="49"></td>
          </tr>
          <tr>
            <td height="30">&nbsp;</td>
          </tr>
          <tr>
            <td align="center"><table width="98%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="/images/mypage/txt01.gif" width="511" height="22"></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
             
              
              <tr>
                <td align="center"><!--적립일별 조회 -->
                  <table width="88%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="15"><img src="/images/mypage/table_tl.gif" width="15" height="15"></td>
                    <td bgcolor="#eeebe4"><img src="/images/common/clear.gif" width="1" height="1"></td>
                    <td width="15"><img src="/images/mypage/table_tr.gif" width="15" height="15"></td>
                  </tr>
                  <tr bgcolor="#eeebe4">
                    <td><img src="/images/common/clear.gif" width="1" height="1"></td>
                    <td height="35" align="center" class="big_purple"><table width="98%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="25"><img src="/images/mypage/txt19.gif" width="75" height="14"></td>
                        <td><select class='member_border' name="CardNo" id="d_CardNo" style="width:200px">
<% if ( CardList.Count != 0 ) { %>
<%foreach( UserCardEntity item in CardList) { %>
                          <option value="<%=item.CardNo %>"><%=item.CardNo %></option>
<% } %>
<% } else { %>
						<option value="0">등록된 카드가 없습니다.</option>
<% } %>
                        </select></td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td width="85" height="25"><img src="/images/mypage/txt05.gif" width="75" height="14"></td>
                        <td>
							<input type='text' name='FromDate' maxlength='20' size='15' value='' id="d_FromDate" readonly="readonly" value='<%=this.FromDate %>'/>
								<a href="#" id="d_btnFromDate"><img src="/images/mypage/icon.gif" width="16" height="18" align="absmiddle"></a>~
							<input type='text' name='ToDate' maxlength='20' size='15' value='<%=this.ToDate %>' id="d_ToDate"/>
								<a href="#" id="d_btnToDate"><img src="/images/mypage/icon.gif" width="16" height="18" align="absmiddle"></a>
                        </td>
                        <td>	<a href="#" id="d_1Month"><img src="/images/mypage/bt_1m.gif" width="49" height="20" align="absmiddle"></a> 
								<a href="#" id="d_3Month"><img src="/images/mypage/bt_3m.gif" width="49" height="20" align="absmiddle"></a> 
								<a href="#" id="d_All"><img src="/images/mypage/bt_all.gif" width="49" height="20" align="absmiddle"></a>
						</td>
                        <td><a href="#" id="d_btnSearch"><img src="/images/mypage/bt_search.gif" width="69" height="22"></a><a href="#"></a></td>
                      </tr>
                    </table></td>
                    <td><img src="/images/common/clear.gif" width="1" height="1"></td>
                  </tr>
                  <tr>
                    <td><img src="/images/mypage/table_bl.gif" width="15" height="15"></td>
                    <td bgcolor="#eeebe4"><img src="/images/common/clear.gif" width="1" height="1"></td>
                    <td><img src="/images/mypage/table_br.gif" width="15" height="15"></td>
                  </tr>
                </table>
<script language="javascript" type="text/javascript">
(function($) {
	$(function() {
		$("#d_FromDate").datepicker({
			showButtonPanel: true,
			dateFormat: "yy-mm-dd",
			monthNames: ["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]
		});
		$("#d_FromDate").val( "<%=this.FromDate %>" );

		$("#d_ToDate").datepicker({
			showButtonPanel: true,
			dateFormat: "yy-mm-dd",
			monthNames: ["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]
		});
		$("#d_ToDate").val( "<%=this.ToDate %>" );
		
		$("#d_btnFromDate").click(function() {
			$("#d_FromDate").datepicker("show");
		});
		$("#d_btnToDate").click(function() {
			$("#d_ToDate").datepicker("show");
		});

		$("#d_1Month").click(function() {
			var toDate = new Date();
			var fromDate = new Date();
			fromDate.setMonth( toDate.getMonth() - 1 );
			$("#d_FromDate").val(fromDate.getFullYear()+"-"+(fromDate.getMonth()+1)+"-"+fromDate.getDate());
			$("#d_ToDate").val(toDate.getFullYear()+"-"+(toDate.getMonth()+1)+"-"+toDate.getDate());
			return false;
		});
		
		$("#d_3Month").click(function() {
			var toDate = new Date();
			var fromDate = new Date();
			fromDate.setMonth( toDate.getMonth() - 3 );
			$("#d_FromDate").val(fromDate.getFullYear()+"-"+(fromDate.getMonth()+1)+"-"+fromDate.getDate());
			$("#d_ToDate").val(toDate.getFullYear()+"-"+(toDate.getMonth()+1)+"-"+toDate.getDate());
			return false;
		});
		
		$("#d_All").click(function() {
			var toDate = new Date();
			var fromDate = new Date();
			fromDate.setMonth( toDate.getMonth() - 3 );
			$("#d_FromDate").val("2012-1-1");
			$("#d_ToDate").val(toDate.getFullYear()+"-"+(toDate.getMonth()+1)+"-"+toDate.getDate());
			return false;
		});
		
		$("#d_btnSearch").click(function() {
			var CardNo = $("#d_CardNo").val();
			var toDate = $("#d_ToDate").val();
			var fromDate = $("#d_FromDate").val();
			location.href="/mypage/card_info.aspx?PageNo=1&CardNo=" + CardNo + "&FromDate=" + fromDate + "&ToDate=" + toDate;
			return false;
		});
	});
})(jQuery);
</script>
                  <!--적립일별 조회 끝 --></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              
               <tr>
                <td><!--포인트 정보 -->
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td align="right"><table width="210" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="15"><img src="/images/mypage/table_tl.gif" width="15" height="15"></td>
                        <td bgcolor="#eeebe4"><img src="/images/common/clear.gif" width="1" height="1"></td>
                        <td width="15"><img src="/images/mypage/table_tr.gif" width="15" height="15"></td>
                      </tr>
                      <tr bgcolor="#eeebe4">
                        <td><img src="/images/common/clear.gif" width="1" height="1"></td>
                        <td height="28" align="center" valign="top"><img src="/images/mypage/txt02.gif" width="75" height="19"></td>
                        <td><img src="/images/common/clear.gif" width="1" height="1"></td>
                      </tr>
                      <tr bgcolor="#eeebe4">
                        <td><img src="/images/common/clear.gif" width="1" height="1"></td>
                        <td align="center"><img src="/images/mypage/line.gif" width="177" height="1"></td>
                        <td><img src="/images/common/clear.gif" width="1" height="1"></td>
                      </tr>
                      <tr bgcolor="#eeebe4">
                        <td><img src="/images/common/clear.gif" width="1" height="1"></td>
                        <td height="35" align="center" class="big_purple"><%=TotalPoint %>점</td>
                        <td><img src="/images/common/clear.gif" width="1" height="1"></td>
                      </tr>
                      <tr>
                        <td><img src="/images/mypage/table_bl.gif" width="15" height="15"></td>
                        <td bgcolor="#eeebe4"><img src="/images/common/clear.gif" width="1" height="1"></td>
                        <td><img src="/images/mypage/table_br.gif" width="15" height="15"></td>
                      </tr>
                    </table></td>
                    <td align="center"><table width="210" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="15"><img src="/images/mypage/table_tl.gif" width="15" height="15"></td>
                        <td bgcolor="#eeebe4"><img src="/images/common/clear.gif" width="1" height="1"></td>
                        <td width="15"><img src="/images/mypage/table_tr.gif" width="15" height="15"></td>
                      </tr>
                      <tr bgcolor="#eeebe4">
                        <td><img src="/images/common/clear.gif" width="1" height="1"></td>
                        <td height="28" align="center" valign="top"><img src="/images/mypage/txt03.gif" width="107" height="19"></td>
                        <td><img src="/images/common/clear.gif" width="1" height="1"></td>
                      </tr>
                      <tr bgcolor="#eeebe4">
                        <td><img src="/images/common/clear.gif" width="1" height="1"></td>
                        <td align="center"><img src="/images/mypage/line.gif" width="177" height="1"></td>
                        <td><img src="/images/common/clear.gif" width="1" height="1"></td>
                      </tr>
                      <tr bgcolor="#eeebe4">
                        <td><img src="/images/common/clear.gif" width="1" height="1"></td>
                        <td height="35" align="center" class="big_purple"><%=UsedPoint %>점</td>
                        <td><img src="/images/common/clear.gif" width="1" height="1"></td>
                      </tr>
                      <tr>
                        <td><img src="/images/mypage/table_bl.gif" width="15" height="15"></td>
                        <td bgcolor="#eeebe4"><img src="/images/common/clear.gif" width="1" height="1"></td>
                        <td><img src="/images/mypage/table_br.gif" width="15" height="15"></td>
                      </tr>
                    </table></td>
                    <td><table width="210" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="15"><img src="/images/mypage/table_tl.gif" width="15" height="15"></td>
                        <td bgcolor="#eeebe4"><img src="/images/common/clear.gif" width="1" height="1"></td>
                        <td width="15"><img src="/images/mypage/table_tr.gif" width="15" height="15"></td>
                      </tr>
                      <tr bgcolor="#eeebe4">
                        <td><img src="/images/common/clear.gif" width="1" height="1"></td>
                        <td height="28" align="center" valign="top"><img src="/images/mypage/txt04.gif" width="107" height="19"></td>
                        <td><img src="/images/common/clear.gif" width="1" height="1"></td>
                      </tr>
                      <tr bgcolor="#eeebe4">
                        <td><img src="/images/common/clear.gif" width="1" height="1"></td>
                        <td align="center"><img src="/images/mypage/line.gif" width="177" height="1"></td>
                        <td><img src="/images/common/clear.gif" width="1" height="1"></td>
                      </tr>
                      <tr bgcolor="#eeebe4">
                        <td><img src="/images/common/clear.gif" width="1" height="1"></td>
                        <td height="35" align="center" class="big_purple"><%=NowPoint %>점</td>
                        <td><img src="/images/common/clear.gif" width="1" height="1"></td>
                      </tr>
                      <tr>
                        <td><img src="/images/mypage/table_bl.gif" width="15" height="15"></td>
                        <td bgcolor="#eeebe4"><img src="/images/common/clear.gif" width="1" height="1"></td>
                        <td><img src="/images/mypage/table_br.gif" width="15" height="15"></td>
                      </tr>
                    </table></td>
                  </tr>
                </table>
                  <!--포인트 정보 끝 --></td>
              </tr>
              
              
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table>
              <table width="98%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="32" background="/images/whatsnew/notice_bg.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="60" align="center"><img src="/images/whatsnew/notice_txt01.gif" width="17" height="11"></td>
                      <td width="5"><img src="/images/whatsnew/notice_line.gif" width="5" height="12"></td>
                      <td width="120" align="center"><img src="/images/mypage/txt06.gif" width="28" height="11"></td>
                      <td width="5" align="center"><img src="/images/whatsnew/notice_line.gif" width="5" height="12"></td>
                      <td align="center"><img src="/images/mypage/txt07.gif" width="38" height="11"></td>
                      <td width="5" align="center"><img src="/images/whatsnew/notice_line.gif" width="5" height="12"></td>
                      <td width="110" align="center"><img src="/images/mypage/txt08.gif" width="46" height="11"></td>
                      <td width="5"><img src="/images/whatsnew/notice_line.gif" width="5" height="12"></td>
                      <td width="110" align="center"><img src="/images/mypage/txt09.gif" width="46" height="11"></td>
                      <!--<td width="5"><img src="/images/whatsnew/notice_line.gif" width="5" height="12"></td>
                      <td width="110" align="center"><img src="/images/mypage/txt10.gif" width="46" height="11"></td>-->
                    </tr>
                  </table></td>
                </tr>
              </table>
              <!--리스트 -->
              <table border='1' cellpadding='0' cellspacing='0' width='98%' style='border-collapse:collapse' bordercolor='#f5f5f5' frame='void'>

<% foreach(PointHistoryEntity item in PointList) { %>
              <tr>
                <td height="32"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="60" align="center"><span class="gray_sbold"><%=item.HistoryNo %></span></td>
                    <td width="5"><img src="/images/common/clear.gif" width="1" height="1"></td>
                    <td width="120" align="center"><span class="small_gray"><%=item.CreateDate.ToString("yyyy-MM-dd") %></span></td>
                    <td width="5" align="center"><img src="/images/common/clear.gif" width="1" height="1"></td>
                    <td align="center"><%=item.StoreName %></td>
                    <td width="5" align="center"><img src="/images/common/clear.gif" width="1" height="1"></td>
                    <td width="110" align="center"><span class="small_gray"><%=item.AddPoint %></span></td>
                    <td width="5"><img src="/images/common/clear.gif" width="1" height="1"></td>
                    <td width="110" align="center"><span class="small_gray"><%=item.UsedPoint %></span></td>
                    <!--<td width="5"><img src="/images/common/clear.gif" width="1" height="1"></td>
                    <td width="110" align="center"><span class="small_gray">0</span></td>-->
                  </tr>
                </table></td>
              </tr>
<% } %>
              <tr>
                <td height='2' bgcolor='#f5f5f5'></td>
              </tr>
            </table>
              <!--리스트 끝 -->
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="25">&nbsp;</td>
                </tr>
                <tr>
                  <td height="35" align="center"><UC:Paging ID="UC_Paging" runat="server" /></td>
                </tr>
            </table></td>
          </tr>
        </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="50">&nbsp;</td>
            </tr>
        </table>

</asp:Content>
